package apollo.generator.modules.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <Description>
 * 列实体
 * @author Jun Lee
 * @version 1.0
 * @createDate 2020/07/04 16:50
 * @see apollo.generator.modules.entity
 */
public class ColumnEntity {
    /**
     * 列名
     */
    private String columnName;
    /**
     * 数据类型
     */
    private String dataType;
    /**
     * 列注释
     */
    private String columnComment;
    /**
     * 是否主键(true-是,false-否)
     */
    private boolean columnKey;

    private String extra;

    //第一个字母大写
    @TableField(exist = false)
    private String attrName;
    //第一个字母小写
    @TableField(exist = false)
    private String attrname;

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getColumnComment() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment = columnComment;
    }

    public boolean isColumnKey() {
        return columnKey;
    }

    public void setColumnKey(boolean columnKey) {
        this.columnKey = columnKey;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getAttrname() {
        return attrname;
    }

    public void setAttrname(String attrname) {
        this.attrname = attrname;
    }
}
